package com.example.wenliangjiudian.service.impl;


import com.example.wenliangjiudian.entity.Menu;
import com.example.wenliangjiudian.mapper.MenuMapper;
import com.example.wenliangjiudian.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> selectAll() {
        return menuMapper.selectAll();
    }

    @Override
    public List<Menu> getMyMenu(Integer id) {
        return menuMapper.getMyMenu(id);
    }
}
